#include <stdio.h>
#include <stdlib.h>

#define MAX 10

void BuildGraph(int **graph, int nv, int ne);

int main(int argc, char *argv[]) {
    int graph[MAX][MAX], nv, ne;
    BuildGraph(graph, nv, ne);
    return 0;
}

void BuildGraph(int **graph, int nv, int ne) {

    // Create an empty graph
    for (int i = 0; i < nv; i++)
    {
        for (int j = 0; j < nv; j++)
        {
            graph[i][j] = 0;
        }
        
    }

    int v1, v2, weight;
    for (int i = 0; i < ne; i++)
    {
        
        scanf("%d %d %d", &v1, &v2, &weight);
        graph[v1][v2] = weight;
    }
    
    
}